/* pages/home/home.wxss */
.top-search {
  background-color: rgb(255, 87, 0);
  display: flex;
  position: fixed;
  top: 0rpx;
  align-items: center;
  z-index: 10;
}

.top-search .top-container {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.top-search .icon {
  border-radius: 10rpx;
  width: 50rpx;
  height: 50rpx;
  margin: 0 20rpx;
  font-size: 14px;
}

.top-search .search {
  flex: 1;
  display: flex;
  background-color: #fff;
  border-radius: 20px;
  align-items: center;
  align-self: stretch;
  margin: 10rpx 40rpx 10rpx 0;
  padding-left: 10rpx;
  font-size: 18px;
  color: #bdbbbb;
}

.top-search .search text {
  font-size: 14px;
  line-height: 14px;
  color: #ccc;
}

.swiper-container {
  position: relative;
  text-align: center;
  padding-top: 100px;
}

.swiper-container swiper {
  margin-top: 20rpx;
}

.swiper-container::before {
  content: "";
  background-color: rgb(255, 76, 0);
  position: absolute;
  height: 200rpx;
  width: 100%;
  left: 0;
  border-radius: 0 0 50% 50%;
}

.swiper-container image {
  width: 720rpx;
  height: 100%;
  border-radius: 10rpx;
}

.safe {
  font-size: 12px;
  display: flex;
  padding: 0 15rpx;
  margin: 10rpx 0;
}

.safe .safe-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #ddd;
}

.safe .safe-item:last-child {
  border: none;
}

.safe .safe-item image {
  width: 14px;
  height: 14px;
  margin-right: 10rpx;
}

.safe .safe-item:last-child image {
  width: 20px;
  height: 20px;
}

.sticky-container {
  /* height: 50rpx; */
  width: 100%;
  // overflow: auto;
  white-space: nowrap;
  padding-bottom: 10rpx;
  overflow-x: scroll;
  // background: #fff;
  /* background-color: rgb(245, 245, 245); */
  &.stick {
    background: #fff;
  }
  &::-webkit-scrollbar {
    display: none;
  }
  &.stick .sticky-item {
    padding-top: 5rpx;
    &.active .title::after {
      content: "";
      position: absolute;
      bottom: 0;
      width: 50rpx;
      left: 50%;
      margin-left: -25rpx;
      height: 3px;
      background-color: rgb(255, 87, 0);
    }
    .sub-title {
      display: none;
      // visibility: hidden;
    }
  }
  .sticky-item {
    vertical-align: middle;
    display: inline-block;
    text-align: center;
    margin: 0 10rpx 0 15rpx;
    width: 140rpx;
    // padding: 20rpx 0;
    .title {
      font-size: 18px;
      font-weight: bold;
      position: relative;
      padding: 10rpx 0;
    }
    .sub-title {
      font-size: 10px;
      color: #ccc;
      display: inline-block;
      padding: 5rpx 10rpx;
    }
    &.active .title {
      color: rgb(255, 87, 0);
    }
    &.active .sub-title {
      background-color: rgb(255, 87, 0);
      color: #fff;
      border-radius: 20rpx;
    }
  }
}

.weui-sticky__fixed {
  width: 100%;
}

.tab-container {
  width: 100%;
  display: flex;
  margin-top: 20rpx;
  flex-wrap: wrap;
  padding: 0 20rpx;
  box-sizing: border-box;
  vertical-align: top;
  align-items: flex-start;
  justify-content: space-between;
  &.stick {
    padding-top: 90rpx;
  }
  .left,
  .right {
    width: calc((100% - 20rpx) / 2);
  }
  .tab-item {
    width: 100%;
    flex-grow: 0;
    background-color: #fff;
    margin-bottom: 20rpx;
    border-radius: 20rpx;
    overflow: hidden;
    word-break: break-all;
    line-height: 40rpx;
    font-size: 16px;
    padding-bottom: 20rpx;
    image {
      margin-bottom: 10rpx;
    }
    view {
      margin: 0 10rpx;
      &.price {
        margin-top: 10rpx;
        display: flex;
        .crt {
          text-decoration: line-through;
          font-size: 12px;
          margin-left: 10rpx;
        }
      }
    }
  }
}
.tab-bottom {
  width: 100%;
  text-align: center;
}
